Skip to content

Sync/videollava#2129

Merged
astachowiczhabana merged 2 commits into
huggingface:v1.19-releasefrom
yafshar:sync/videollava
Jul 11, 2025
Merged

Sync/videollava#2129
astachowiczhabana merged 2 commits into
huggingface:v1.19-releasefrom
yafshar:sync/videollava

Conversation

@yafshar
Copy link
Copy Markdown
Contributor

@yafshar yafshar commented Jul 10, 2025

The GaudiVideoLlavaProcessor has been removed from optimum-habana as its functionality is now fully aligned with the v4.51.3 Transformers implementation. No custom logic is required, and maintaining a separate class is redundant.

Update GaudiVideoLlavaForConditionalGeneration implementation with the v4.51.3 transformers changes while retaining token_idx argument for compatibility with Gaudi optimizations.

>>> python -m pytest tests/test_image_to_text_example.py -k llava
================= 7 passed, 7 deselected in 704.09s (0:11:44) ==================

>>> python -m pytest tests/test_video_llava.py
======================== 1 passed in 109.60s (0:01:49) =========================

The masked_scatter is not a bottleneck on G3 anymore.

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

yafshar added 2 commits July 11, 2025 04:46
The GaudiVideoLlavaProcessor has been removed from optimum-habana
as its functionality is now fully aligned with the upstream
Transformers implementation. No custom logic is required, and
maintaining a separate class is redundant.
This update aligns the GaudiVideoLlavaForConditionalGeneration
implementation with the v4.51.3 transformers changes while retaining
`token_idx` argument for compatibility with Gaudi optimizations.
@astachowiczhabana astachowiczhabana merged commit 5cc564e into huggingface:v1.19-release Jul 11, 2025
1 check passed
@yafshar yafshar deleted the sync/videollava branch July 11, 2025 18:20
astachowiczhabana pushed a commit that referenced this pull request Aug 22, 2025
* Align VideoLlavaProcessor with Transformers v4.51.3

The GaudiVideoLlavaProcessor has been removed from optimum-habana
as its functionality is now fully aligned with the upstream
Transformers implementation. No custom logic is required, and
maintaining a separate class is redundant.

* Update GaudiVideoLlavaForConditionalGeneration

This update aligns the GaudiVideoLlavaForConditionalGeneration
implementation with the v4.51.3 transformers changes while retaining
`token_idx` argument for compatibility with Gaudi optimizations.
astachowiczhabana pushed a commit that referenced this pull request Aug 25, 2025
* Align VideoLlavaProcessor with Transformers v4.51.3

The GaudiVideoLlavaProcessor has been removed from optimum-habana
as its functionality is now fully aligned with the upstream
Transformers implementation. No custom logic is required, and
maintaining a separate class is redundant.

* Update GaudiVideoLlavaForConditionalGeneration

This update aligns the GaudiVideoLlavaForConditionalGeneration
implementation with the v4.51.3 transformers changes while retaining
`token_idx` argument for compatibility with Gaudi optimizations.
astachowiczhabana pushed a commit that referenced this pull request Sep 10, 2025
* Align VideoLlavaProcessor with Transformers v4.51.3

The GaudiVideoLlavaProcessor has been removed from optimum-habana
as its functionality is now fully aligned with the upstream
Transformers implementation. No custom logic is required, and
maintaining a separate class is redundant.

* Update GaudiVideoLlavaForConditionalGeneration

This update aligns the GaudiVideoLlavaForConditionalGeneration
implementation with the v4.51.3 transformers changes while retaining
`token_idx` argument for compatibility with Gaudi optimizations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants